// 支付
import request from '@/utils/request'
export default {
	// 请求获取交易信息
	// reqTradeInfo() {
	//   return request.get('/order/auth/trade')
	// },

	reqUserAddressList() {
		return request.get('/user/userAddress/auth/findUserAddressList')
	},


	// 请求提交创建订单
	reqSubmitOrder(tradeNo, addressInfo) {
		return request({
			url: `/order/auth/submitOrder?tradeNo=${tradeNo}`,
			method: 'post',
			data: addressInfo
		})
	},

	reqTradeInfo() {
		return request.get('/order/auth/trade')
	},
	reqPayInfo(orderId) {
		return request({
			url: `/payment/weixin/createNative/${orderId}`,
			method: 'get'
		})
	},
	reqPayStatus(orderId) {
		return request({
			url: `/payment/weixin/queryPayStatus/${orderId}`,
			method: 'get'
		})
	},
	reqMyOrderInfo(page,limit) {
		return request({
			url: `/order/auth/${page}/${limit}`,
			method: 'get'
		})
	},
}
